FROM python:3

LABEL authors="liangxinpeng"

# 配置工作目录
WORKDIR /app

# 复制当前目录下的所有文件到容器的/app目录
COPY . .

RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt

# 负责启动项目
ENTRYPOINT ["python3", "manage.py", "runserver", "0.0.0.0:8000"]